package com.qqt.csr.web.vo.req;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qqt.csr.common.operalog.OperaLogSchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(name = "UpdatingCsStatusReqVO", description = "切换客服状态")
public class UpdatingCsStatusReqVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -5849219771216393019L;

    @Schema(description = "就绪状态：0 未就绪；1 就绪", requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "就绪状态")
    @NotNull(message = "就绪状态不能为空")
    @Min(value = 0, message = "就绪状态值不合法")
    @Max(value = 1, message = "就绪状态值不合法")
    private Integer readyStatus;

    @Schema(description = "工作状态：0 在线；1 忙碌", requiredMode = Schema.RequiredMode.REQUIRED)
    @OperaLogSchema(desc = "工作状态")
    @NotNull(message = "工作状态不能为空")
    @Min(value = 0, message = "工作状态值不合法")
    @Max(value = 1, message = "工作状态值不合法")
    private Integer workStatus;
}
